package com.mygdx.game.Stage.Fight.Card;


import com.mygdx.game.Stage.Fight.*;

import java.util.ArrayList;


public class BodyHitCardPlus extends Card {
    public BodyHitCardPlus() {
        super("com/mygdx/game/Stage/Fight/BodyHitPlus.png");
    }

    @Override
    public boolean effect(Energy energy, Fighter fighterL, ArrayList<Fighter> enemies){

        if (energy.energy-this.cost<0)return false;
        energy.energy-=cost;

        energy.energy = 0;          //能量消耗为0;

        enemies.get(0).hp -= fighterL.shield;       //对敌人造成人物护甲值的伤害

        return true;
    }
}
